Issue with file upload in line-item and product attributes
I try to setup a commerce site where the customer can order prints. The prints can have choices of papersize and paperquality. These are setup as attributes fields at a new product type called print.
Beside that the customer has to upload the picture he wants to get printed. Therefore I created a custom line-item with a file field to collect the file. Then, after creating the product display, the product shows up ok with the two selection fields and the file upload field.
How to Upload images without Base64 encoding
In my android application , I can upload files to my Drupal 6 server using services module file resource in which I first Base64 encode the file and send it via a StringEntity as follows:
HttpClient httpClient = new DefaultHttpClient(connectionParameters);
HttpContext localContext = new BasicHttpContext();
JSONObject json = new JSONObject();
json.put("file", Base64.encodeToString(photodata,Base64.DEFAULT));
json.put("uid", getUid());
json.put("filename", file_name);
StringEntity se = new StringEntity(json.toString());
Read moreImport Filesystem in menu
Hello all.
I am building a university students' community-site, and as concerning the subjects' part I have the following situation:
I already have a folder hierarchy under sites/default/files such as:
root: 6 Departure folders
depth-1: 10 semester folders ---- (same for every departure folder)
depth-2: 1 - 6 subject folders ---- (different for every semester folder)
depth-3: 5 material folders(categories) ---- (same for every subject folder)
Best practice for user-generated video sharing site?
Hi all,
I am building a user-generated video sharing site for my client. He wants users with appropriate role can submit their videos to the site and share it. A problem is, for some reasons unknown to me, he wants to use FTP instead of FileField upload functionality to submit a video. Then he wants to get these files hosted by a CDN provider and embed in a node a video file which is retrieved from a CDN provider. A video can last 1 hour or longer sometimes.
Read morePython code using XML-RPC to create a node and upload/attach a file.
I've searched the web looking for something more than a "create a node" example for Drupal Services. There are some good examples for Flash/Flex and some bits and pieces in Python or PHP but nothing that helps me to figure out what I am doing wrong.
Since my client is planning to develop a cross platform application that interacts with their Drupal site, I thought I would create a sample app in Python - just to show the Flash, iPhone, Droid, Blackberry developers how the Drupal Services API works.
Read moreUpload fungerar men kommer inte åt filen
Jag har installerat drupal på one.com och får det mesta att fungera, men när jag använder core-modulen upload så fungerar det inte att läsa filerna som jag laddat upp. Jag ser att de ligger under sites/default/files men jag får felmeddelandet:
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, support@one.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
Read moreEkli Dosya tanımı içinde arama yapabilmek...
Drupal'e yeni başladığımı belirtmeliyim. Pardus üzerine kurduğum Drupal'i şirketimiz bünyesinde, dokuman ve form paylaşımı için kullanmaktayız.
Ekli dokümanların açıklama kısımlarını (Tanım - Description) doldurduğumuz halde, site içi arama sonuçlarında dosyaların tanım kısımlarını gösterememekte. "Search Files" modülünün dosya içeriğinde de arama yapabildiğinden bahsediliyordu, fakat bu modülü ekledikten sonra Türkçe dili için hata mesajları almam sonrasında modülü kaldırdım.
Bu şekilde dosya tanımlarında arama yapabilmek için hangi modülü yada yöntemi önerirsiniz?
Read more

